package com.kkb.kkbportal.controller;

import com.kkb.kkbcommon.api.CommonResult;
import com.kkb.kkbportal.domain.Special;
import com.kkb.kkbportal.service.SpecialService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: Administrator
 * @ClassName：SpecialController
 * @User：面向对象面向君，不负代码不负卿
 * @Data：2021/8/15
 * @Time：19:10
 */
@Api(tags = "首页特点类管理", value = "前台特点类模块")
@RestController
@RequestMapping("/home/special")
public class SpecialController {

    @Autowired
    private SpecialService specialService;

    @ApiOperation(value = "特点类列表", notes = "显示特点类列表信息")
    @GetMapping("/list")
    public CommonResult<List<Special>> getListSpecial() {
        List<Special> list = specialService.listAll();
        return CommonResult.success(list);
    }
}

